package day0110.demo4;


public class Test {
    public static void main(String[] args) {
       /* Computer lenovo=new Computer();//1.创建电脑对象
        lenovo.brand="联想"; lenovo.model="小新Pro16";//2.给电脑成员变量赋值
        lenovo.price=6199;
        //3.打印每个电脑信息
        System.out.println(lenovo.brand+","+lenovo.model+","+lenovo.price);
        String rs=lenovo.getAllStringMsg();//4.调用getAllStringMsg()获取所有信息
        System.out.println(rs);
        //4.调用玩游戏的方法
        boolean isWin=lenovo.playGame(2);
        System.out.println("是否赢得了比赛：" + isWin);*/


        new LenovoComputer("联想","Y550",5599);


    }
}